package springboot.file.demo.easyexcel.serviceImpl;

import com.alibaba.excel.util.ListUtils;
import org.springframework.stereotype.Service;
import springboot.file.demo.easyexcel.pojo.DemoData;

import java.util.Date;
import java.util.List;

/**
 * @Author: jxm
 * @Description:
 * @Date: 2022/10/27 11:03
 * @Version: 1.0
 */
@Service
public class DemoDataServiceImpl {

    public List<DemoData> data() {
        List<DemoData> list = ListUtils.newArrayList();
        for (int i = 0; i < 10; i++) {
            DemoData data = new DemoData();
            data.setString("字符串" + i);
            data.setDate(new Date());
            data.setDoubleData(0.56);
            list.add(data);
        }
        return list;
    }
}
